Skip to content

chore: remove regenerator runtime completely#7599

Closed
SimenB wants to merge 1 commit into
jestjs:masterfrom
SimenB:remove-regenerator-runtime
Closed

chore: remove regenerator runtime completely#7599
SimenB wants to merge 1 commit into
jestjs:masterfrom
SimenB:remove-regenerator-runtime

Conversation

@SimenB

@SimenB SimenB commented Jan 10, 2019

Copy link
Copy Markdown
Member

Summary

Alternative to #7595

Test plan

Green CI?

const exportedModules = new Map([
['foo', 'foo'],
['bar', 'bar'],
['regenerator-runtime/runtime', 'fakeRegenerator'],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fakeRegenerator can be removed now

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was more of a PoC (and I'm too lazy to run the tests on multiple nodes, so opened this up so CI could run), we should close this and go for yours 🙂

"version": "0.0.0",
"name": "example-async",
"devDependencies": {
"@babel/plugin-transform-runtime": "*",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this plugins is still used by the example, probably works because our deps have this plugins somewhere

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should remove it from the babel config, preset-env should be enough

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it then reports that regeneratorRuntime is not defined 🤔

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm that was because of the target missing

@SimenB

SimenB commented Jan 10, 2019

Copy link
Copy Markdown
Member Author

Intermittent node 8 failure, but since both node 6 and node 10 passed I'll call this a success. But let's land #7595 instead 🙂

@SimenB SimenB closed this Jan 10, 2019
@SimenB SimenB deleted the remove-regenerator-runtime branch January 10, 2019 10:48
@github-actions

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants